package com.czh.springboot04.service;

import com.czh.springboot04.entity.CourseBuy;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CourseBuyService {
    int insertCourseBuy(CourseBuy courseBuy);
    int updateCourseBuyById(CourseBuy courseBuy);
    CourseBuy selectCourseBuyById(Integer buyId);
    PageInfo<CourseBuy> selectCourseBuyAll(Integer courseId,
                                           Integer memberId,
                                           double minbuyPrice,
                                           double maxbuyPrice,
                                           Integer buyState,
                                           Integer pageNum,
                                           Integer pageSize);
    int deleteCourseBuyById(Integer buyId);
    int deleteCourseBuyByList(List<Integer> buyIdList);

    PageInfo<CourseBuy> selectCourseBuyList(Integer pageNum, Integer pageSize);

    CourseBuy selectCourseBuyByCourseId(int courseId,int memberId);
   PageInfo<CourseBuy> selectByMId(int pageNum,int pageSize,int memberId);

}
